const { Schema, model } = require('mongoose');
const customersSchema = new Schema({
    account: String,
    password: String,
    name: String,
    age: String,
    gender: String,
    phone: String,
    salesMenId: {
        type: Schema.Types.ObjectId,
        ref: 'salesMenModel' //要关联的集合模型名称
    },
    deleteID: {
        type: Boolean,
        default: 'false'
    }
}, { versionKey: false });
module.exports.customersModel = model('customersModel', customersSchema, 'customers');